import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import App from './App.vue'
import router from './router'
import * as echarts from 'echarts';
import 'element-plus/theme-chalk/el-message.css'


// import './assets/main.css'

// 引入mockjs模拟
import './mock/index'
import './mock/Family-schoolInteractiongll/Studentsleave'
import './mock/ljy'

const app = createApp(App)

var store = createPinia()
store.use(createPersistedState())
app.use(store)
app.use(router)

app.mount('#app')
// const app = createApp(App)
app.config.globalProperties.$echarts = echarts
// app.use(createPinia())
// app.use(router)

